import React from 'react';
import {Tag} from 'antd'


interface IOrderStatus {
    crash: number
}
const OrderStatus: React.FC<IOrderStatus> = ({crash}) => {
    return (
        <>
        {crash === 0 && (<Tag color="default">一般</Tag>)}
        {crash === 1 && (<Tag color="warning">急</Tag>)}
        {crash === 2 && (<Tag color="error">加急</Tag>)}
        </>
    )
}
export default OrderStatus
